<div class="page">
	<div class="layoutBox">

	<form method="post" action="__URL__/update/navTabId/__MODULE__" class="pageForm required-validate" enctype="multipart/form-data" onsubmit="return iframeCallback(this, dialogAjaxDone)">
		<input type="hidden" name="id" value="{$vo.id}" />
		<div class="pageFormContent" layoutH="100">
            <div class="unit">
                <label>音乐名：</label>
                <input   name="title" type="text" class="required" value="{$vo.title}" size="40">
            </div>		
            <div class="unit">
                <label>所属分类：</label>
                <input type="text" class="required" size="40" readonly="readonly" id="categoryName_edit_music" name="categoryName" value="{$vo.tid|getCategoryName}"/>
                <a class="unit btn" href="__APP__/Ui/tree/mod/__MODULE__/selparent/0/selmore/0/cid/tid_edit_music/cname/categoryName_edit_music" target="dialog" rel="tree" mask="true" title="选择分类" width="400" height="450">选择分类</a>
                <input type="hidden" class="required" id="tid_edit_music" name="tid" value="{$vo.tid}" />
            </div>
            <div class="unit">
                <label>作者：</label>
                <input type="text" size="40" name="author" value="{$vo.author}">
            </div>			
            <div class="unit">
                    <label>排序值：</label>
                    <input type="text" name="sort" size="40" maxlength="30" value="{$vo.sort}"/>
            </div>			
            <div class="unit">
                <label>状态：</label>
                <select class="small bLeft"  name="status">
                    <option <eq name="vo.status" value="1" >selected</eq> value="1">启用</option>
                    <option <eq name="vo.status" value="0" >selected</eq> value="0">禁用</option>
                </select>
            </div>		
            <div class="unit">
                <label>上传音乐：</label>
                <?php if($vo['file']!='' && false===strpos($vo['file'],'/')){ ?>
                {$vo.file}&nbsp;&nbsp;<a href="__URL__/delfile/id/{$vo.id}/field/file/navTabId/__MODULE__" target="ajaxTodo" title="你确定要删除音乐吗？">删除音乐</a>
                <?php }else{?>
                <input type="file" name="file" />
                <?php }?>
            </div>	
            <div class="unit">
                <label>外部音乐：</label>
                <input type="text" name="fileurl" id="fileurl" size="40" value="<?php echo false!==strpos($vo['file'], '/') ? $vo['file'] : ''; ?>">
            </div>
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">提交</button></div></div></li>
				<li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
			</ul>
		</div>
	</form>
	
	</div>
</div>
<script>
$(document).ready(function(){
	$('.music').click(function(){
		$('#url').val($(this).attr('value'));
	});	
});
</script>